<%@page import="sdfi.lee.Newpj.Entity.NNews"%>
<%@page import="sdfi.lee.DAO.NewsDAO"%>
<%@page import="java.util.List"%>
<%@page import="sdfi.lee.Newpj.Entity.NNotice"%>

<%@page import="sdfi.lee.Entity.News"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="../css/index.css" />
<link rel="stylesheet" href="../css/level.css" />
<script type="text/javascript" src="../js/jquery-1.6.js"></script>
<script type="text/javascript" src="../js/index.js"></script>
<title>国家新药创制平台（山东）—通知公告</title>
</head>
<body>
<%
	String nid=request.getParameter("id");

	String pg=request.getParameter("pg");
	String type=request.getParameter("type");
	News news=new NewsDAO().getNewsById(Integer.valueOf(nid));
	int rtype=0;
	if("3".equals(type)) rtype=2;
	if("4".equals(type)) rtype=1;
	if("2".endsWith(type)) rtype=8;
	List<News> list=new NewsDAO().getAllNew(nid,rtype,5);

	request.setAttribute("list",list);
	request.setAttribute("news",news);
%>

	<div class="divhead"> 当前位置：<a href="<c:url value='/index.jsp'/>" >首页</a>&nbsp;&gt;&nbsp;<a href="<c:url value='/news/newslist.jsp?pg=1&type=${param.type}'/>">
	<c:if test="${param.type==3}" >业界动态</c:if>
	<c:if test="${param.type==4}" >中心动态</c:if>
	<c:if test="${param.type==2}" >政策法规</c:if>
	</a>&nbsp;&gt;&nbsp;正文
	</div>
    <div id="divshowcontain">
    	<div id="divleft">
        	<div class="div_content_title">
        		${news.newstitle}
        	</div>
        	<div class="div_content_fenge1">&nbsp;</div>
        	<div class="div_content_date">${news.newsdate}</div>
        	<div class="div_content_fenge2"></div>
        	<div class="div_detail">
        		${news.newscontent}
        	</div>
             <div style="clear:left"></div>
        </div>
        <div  id="divmid"></div>
        <div id="divright">
        <c:choose>
        	<c:when test="${fn:length(requestScope.list)>0}">
        	<c:forEach items="${requestScope.list}" var="news">
			<div class="div_news_item">
				
						<c:url var="newsurl" value="/news/newsdetail.jsp?type=${param.type}&id=${news.id}&pg=${param.pg+1}"></c:url>
				
            	<a href="${newsurl}" title="${news.newstitle}">${news.newstitle }</a>
            </div>
            </c:forEach>
        	
        	</c:when>
        <c:otherwise>
        	<h3>暂无相关动态</h3>
        </c:otherwise>
        </c:choose>
       		
        </div>
      <div style="clear:left"></div>
    </div>
      

</body>
</html>